﻿using ProjectShare;
using System;
using System.Collections.Generic;

namespace OMG.Fill.Potato.Model
{
    /// <summary>
    /// 用户表T_User查询条件
    /// </summary>
    public class UserQuery : SearchBase
    {
        //查询条件，请自行删除不需要条件
        /// <summary>
        /// 用户编号
        /// </summary>
        public string Id { get; set; }
        /// <summary>
        /// 账号
        /// </summary>
        public string Account { get; set; }
        /// <summary>
        /// 所属行政区划
        /// </summary>
        public string AreaCode { get; set; }
        /// <summary>
        /// 姓名
        /// </summary>
        public string UserName { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        public string Password { get; set; }
        /// <summary>
        /// 用户类型
        /// </summary>
        public string UserType { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public string Status { get; set; }
        /// <summary>
        /// 工作单位
        /// </summary>
        public string UninName { get; set; }
        /// <summary>
        /// 单位地址
        /// </summary>
        public string UnitAddress { get; set; }
        /// <summary>
        /// 职务
        /// </summary>
        public string PostName { get; set; }
        /// <summary>
        /// 办公电话
        /// </summary>
        public string TelPhone { get; set; }
        /// <summary>
        /// 邮件
        /// </summary>
        public string Email { get; set; }
        /// <summary>
        /// 电话
        /// </summary>
        public string Phone { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        public string Sort { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 最后登录时间
        /// </summary>
        public DateTime? LastLoginTime { get; set; }
        /// <summary>
        /// 新增人
        /// </summary>
        public string AddUser { get; set; }
        /// <summary>
        /// 新增时间
        /// </summary>
        public DateTime? AddTime { get; set; }
        /// <summary>
        /// 修改人
        /// </summary>
        public string UpdateUser { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }
    }
    public class UserModel
    {
        //查询条件，请自行删除不需要条件
        /// <summary>
        /// 用户编号
        /// </summary>
        public string Id { get; set; }
        /// <summary>
        /// 账号
        /// </summary>
        public string Account { get; set; }
        /// <summary>
        /// 所属行政区划
        /// </summary>
        public string AreaCode { get; set; }
        public string AreaCodeName { get; set; }
        public string AreaCodes { get; set; }
        /// <summary>
        /// 姓名
        /// </summary>
        public string UserName { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        public string Password { get; set; }
        /// <summary>
        /// 用户类型
        /// </summary>
        public string UserType { get; set; }
        public string UserTypeName { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public string Status { get; set; }
        public string StatusName { get; set; }
        /// <summary>
        /// 邮件
        /// </summary>
        public string Email { get; set; }
        /// <summary>
        /// 工作单位
        /// </summary>
        public string UninName { get; set; }
        /// <summary>
        /// 单位地址
        /// </summary>
        public string UnitAddress { get; set; }
        /// <summary>
        /// 职务
        /// </summary>
        public string PostName { get; set; }
        /// <summary>
        /// 办公电话
        /// </summary>
        public string TelPhone { get; set; }
        /// <summary>
        /// 电话
        /// </summary>
        public string Phone { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        public string Sort { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 最后登录时间
        /// </summary>
        public DateTime? LastLoginTime { get; set; }
        public string StrLastLoginTime { get; set; }
        /// <summary>
        /// 新增人
        /// </summary>
        public string AddUser { get; set; }
        /// <summary>
        /// 新增时间
        /// </summary>
        public DateTime? AddTime { get; set; }
        public string StrAddTime { get; set; }
        /// <summary>
        /// 修改人
        /// </summary>
        public string UpdateUser { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }
        public string StrUpdateTime { get; set; }
        public List<UserActionItem> ActionList { get; set; }
    }
    public class UserPasswordModel{
        public string UserId { get; set; }
        public string Password { get; set; }
        public string OriginalPwd { get; set; }
    }
}
